package com.ruoyi.lowcode.domain.bo;

import com.ruoyi.common.core.validate.AddGroup;
import com.ruoyi.common.core.validate.EditGroup;
import lombok.Data;
import lombok.EqualsAndHashCode;
import javax.validation.constraints.*;

import java.util.Date;

import com.ruoyi.common.core.domain.BaseEntity;

/**
 * 数据源列业务对象 lc_database_source
 *
 * @author ruoyi
 * @date 2023-09-30
 */

@Data
@EqualsAndHashCode(callSuper = true)
public class LcDatabaseSourceBo extends BaseEntity {

    /**
     *
     */
    @NotNull(message = "不能为空", groups = { EditGroup.class })
    private Long databaseSourceId;

    /**
     * 数据源名称
     */
    @NotBlank(message = "数据源名称不能为空", groups = { AddGroup.class, EditGroup.class })
    private String databaseSourceName;

    /**
     * 类型
     */
    @NotBlank(message = "类型", groups = { AddGroup.class, EditGroup.class })
    private String type;

    /**
     * ip
     */
    @NotBlank(message = "ip不能为空", groups = { AddGroup.class, EditGroup.class })
    private String ip;

    /**
     * 端口
     */
    @NotBlank(message = "端口不能为空", groups = { AddGroup.class, EditGroup.class })
    private String port;

    /**
     * 数据库名称
     */
    @NotBlank(message = "数据库名称不能为空", groups = { AddGroup.class, EditGroup.class })
    private String databaseName;

    /**
     * 账号
     */
    @NotBlank(message = "账号不能为空", groups = { AddGroup.class, EditGroup.class })
    private String username;

    /**
     * 密码
     */
    @NotBlank(message = "密码不能为空", groups = { AddGroup.class, EditGroup.class })
    private String password;

    /**
     * 属性
     */
    private String attribute;

    /**
     * 状态 0 停用 1 启用
     */
    @NotBlank(message = "状态", groups = { AddGroup.class, EditGroup.class })
    private String status;

    /**
     * 备注
     */
    private String remark;

}
